<?php
switch($type) {
	case 'error':
		$class = 'ui-state-error';
		break;
	case 'info':
	case 'success':
	default:
		$class = 'ui-state-highlight';	
}
?>
<div class="message <?php echo $class; ?>">
	<?php echo $message; ?>
	<a href="#" class="close ui-icon ui-icon-close">X</a>
</div>
